﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EA_Application;

namespace AddIn.EA.Framework.Common
{
    /// <summary>
    /// Interface used for the entire elements of the framework
    /// </summary>
    public interface IElement : ISimpleElement
    {
        /// <summary>
        /// Element id.
        /// </summary>
        int ID { get; }
        /// <summary>
        /// Element name.
        /// </summary>
        string Name { get; set; }
        /// <summary>
        /// Action to update data from element into the Enterprise Architect.
        /// </summary>
        void Update();
        /// <summary>
        /// Get errors description occurred in update action.
        /// </summary>
        /// <returns></returns>
        string GetLastError();
    }
}
